import QtQuick 1.0
import "G.js" as G

Image {
    id: idButtonRecommend
    source: "art/bookmark.png"
    width: 64
    height:64

    opacity: 0
    smooth: true

    signal recommended

    Behavior on opacity { NumberAnimation { duration: 150 } }
    MouseArea {
        id: idMouseRegionRecommend
        anchors.fill: parent
        onClicked: {
            //recommendWorker.sendMessage({'spotId': spotId, 'g': G.g});
            idButtonRecommend.recommended();
        }
    }

    states: [
        State {
            name: "Pressed"
            when: idMouseRegionRecommend.pressed == true
            PropertyChanges { target: idButtonRecommend; opacity: 0.5 }
        }
    ]


}
